﻿using API_Service.BizLogic.Kanban;
using Nancy;

namespace API_Service.Module
{
    public class KBNModule:BaseAPIModule
    {
        private KBNService _kbnSrvs = new KBNService();
        public KBNModule() : base("kbn")
        {
            Get["/"] = _ => Response.AsJson("电子看板API服务.");
            
            Get["/getlineoutput"] = _ =>
            {
                var line = Request.Query.line;                
                ExecutionResult<dynamic> result;
                result = new ExecutionResult<dynamic>();

                result = _kbnSrvs.GetEKBNInfo(line);

                return Response.AsJson(result);

            };
        }
    }
}